package com.kuangstudy.scanner;

import java.util.Scanner;

/**
 * ClassName: Demo2
 * date: 2021/7/10/010
 *
 * @author zlk
 */
public class Demo2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);//输入hello world
        if (scanner.hasNextLine()){
            String str = scanner.nextLine();
            System.out.println(str);//输出hello world
        }
        scanner.close();
    }
}
